package com.jxc.jxc01.hch.entity;

import java.util.Objects;

public class WareHouse {
    private int id;
    private String name;
    private String headname;
    private String phone;
    private String address;
    private int size;
    private String unit;
    private String Creationtime;
    private String state;
    private String notes;

    public WareHouse() {
    }

    public WareHouse(int id, String name, String headname, String phone, String address, int size, String unit, String creationtime, String state, String notes) {
        this.id = id;
        this.name = name;
        this.headname = headname;
        this.phone = phone;
        this.address = address;
        this.size = size;
        this.unit = unit;
        Creationtime = creationtime;
        this.state = state;
        this.notes = notes;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHeadname() {
        return headname;
    }

    public void setHeadname(String headname) {
        this.headname = headname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getCreationtime() {
        return Creationtime;
    }

    public void setCreationtime(String creationtime) {
        Creationtime = creationtime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        WareHouse wareHouse = (WareHouse) o;
        return id == wareHouse.id && size == wareHouse.size && Objects.equals(name, wareHouse.name) && Objects.equals(headname, wareHouse.headname) && Objects.equals(phone, wareHouse.phone) && Objects.equals(address, wareHouse.address) && Objects.equals(unit, wareHouse.unit) && Objects.equals(Creationtime, wareHouse.Creationtime) && Objects.equals(state, wareHouse.state) && Objects.equals(notes, wareHouse.notes);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, headname, phone, address, size, unit, Creationtime, state, notes);
    }

    @Override
    public String toString() {
        return "WareHouse{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", headname='" + headname + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", size=" + size +
                ", unit='" + unit + '\'' +
                ", Creationtime='" + Creationtime + '\'' +
                ", state='" + state + '\'' +
                ", notes='" + notes + '\'' +
                '}';
    }
}
